package de.unidue.langtech.teaching.pp.example.pipeline;

import org.apache.uima.fit.factory.AnalysisEngineFactory;
import org.apache.uima.fit.factory.CollectionReaderFactory;
import org.apache.uima.fit.pipeline.SimplePipeline;

import de.unidue.langtech.teaching.pp.example.TimeBaseline;
import de.unidue.langtech.teaching.pp.example.TimeEvaluator;
import de.unidue.langtech.teaching.pp.example.TimeReader;
import de.unidue.langtech.teaching.pp.example.RuleManager;

public class TimePipeline {

    public static void main(String[] args) throws Exception {
        // pipeline to read and process all XML files in the specified directory
        // extracts all TIMEX3 nodes
        SimplePipeline.runPipeline(CollectionReaderFactory.createReader(
                TimeReader.class, TimeReader.PARAM_INPUT_DIRECTORY, "src/test/resources/test data/"),
                AnalysisEngineFactory.createEngineDescription(TimeBaseline.class),
                AnalysisEngineFactory.createEngineDescription(RuleManager.class),
                AnalysisEngineFactory.createEngineDescription(TimeEvaluator.class));
    }
}
